import {defineStore} from "pinia";
import {ref} from "vue";
import {reqHospitalDetail} from "@/api/hospital/index.ts";


// 医院详细数据
export const useHospitalDetail=defineStore('Detail',()=>{


    let hospitalInfo=ref<object>({})
    const get_hospital_detail= async (hoscode:string)=>{
        let res=await reqHospitalDetail(hoscode)
        hospitalInfo.value=res.data

    }

    return{
        hospitalInfo,
        get_hospital_detail
    }
})